package com.xbongbong.saas.domain.entity;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Program xbb-pro
 * @Description
 * @Author caoyy
 * @Date 2019/10/15
 **/
@Getter
@Setter
@ToString
public class WarehouseOristockEntity implements Serializable {
    private Integer id;
    private String corpid;
    private Long appId;
    private Long menuId;
    private Long formId;
    private String serialNo;
    private String ownerId;
    private Long departmentId;
    private Long flowStatus;
    private JSONObject data;
    private String creatorId;
    private Long addTime;
    private Long updateTime;
    private Long del;
    private Long warehouseId;
    public WarehouseOristockEntity(){
        long now = DateTimeUtil.getInt();
        del=0L;
        addTime = now;
        updateTime = now;
    }

    public WarehouseOristockEntity(Integer id, String corpid, Long appId, Long menuId, Long formId, String serialNo, String ownerId, Long departmentId, Long flowStatus, JSONObject data, String creatorId,  Long warehouseId) {
        this();
        this.id = id;
        this.corpid = corpid;
        this.appId = appId;
        this.menuId = menuId;
        this.formId = formId;
        this.serialNo = serialNo;
        this.ownerId = ownerId;
        this.departmentId = departmentId;
        this.flowStatus = flowStatus;
        this.data = data;
        this.creatorId = creatorId;
        this.warehouseId = warehouseId;
    }
}
